import { postService, postServiceList } from '.'
import { PORT1 } from '../config/net.config'
import { System } from './interface/system'

// 前台菜单列表
export const getFrontDeskMenuAPI = (params: {}) => {
  return postServiceList<System.FrontDeskMenu>(`${PORT1}/sysmenupos/GetPageList`, params, false)
}
// 前台菜单列表
export const createFrontDeskMenuAPI = (params: System.FrontDeskMenu) => {
  return postService<null>(`${PORT1}/sysmenupos/docreate`, params, 'json')
}
export const editFrontDeskMenuAPI = (params: System.FrontDeskMenu) => {
  return postService<null>(`${PORT1}/sysmenupos/doedit`, params, 'json')
}
export const deleteFrontDeskMenuAPI = (params: { id: number | string[] }) => {
  return postService<null>(`${PORT1}/sysmenupos/DoBatchDelete`, params, 'json')
}
